package com.eshop.controller.good;

import com.eshop.pojo.Good;
import com.eshop.service.GoodService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "前台商品浏览相关")
@RestController
@RequestMapping("/viewGood_C")
public class GoodViewController {
    @Autowired
    GoodService goodService;

    @ApiOperation("客户浏览和查询商品")
    @GetMapping("/")
    public List<Good> queryGoodList(Good good){
        return goodService.queryGoodList(good);
    }
}
